package com.nbcb.nwql.applicantion.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.converters.string.StringImageConverter;
import lombok.Data;

import java.io.File;
import java.io.InputStream;

@Data
@ContentRowHeight(100) //设置行高
@ColumnWidth(100 / 8)  //设置行宽
public class ImageDataExportVo {
    @ExcelProperty(value = {"编号"},index = 0)
    private  String id;

    //设置表头名称
    @ExcelProperty(value = {"图片们"},index = 1)
    //@ExcelProperty(value = {"图片们"},index = 1,converter = MyUrlConverterUtil.class)
    private String filesStr;

    //设置表头名称
    @ExcelProperty(value = {"图片"},index = 2)
    //@ExcelProperty(value = {"图片"},index = 2,converter = MyUrlConverterUtil.class)
    private File file;

    @ExcelProperty(value = "问题照片1")
    private File path1;

    @ExcelProperty(value = "问题照片2")
    private InputStream path2;

    @ExcelProperty(value = "问题照片4",converter = StringImageConverter.class)
    private String path4;

    @ExcelProperty(value = "问题照片3")
    private byte[] path3;

    //@ExcelIgnore
    //private WriteCellData WriteCellDataFile;


}
